package org.nanowrimo.ws.domain;

import java.util.*;

/**
 * This class provides a binding between a date and the wordcount of a user or region
 * at that point in time.  An array of <code>WordCountListEntry</code> objects is
 * contained in the UserSummary, and in the RegionSummary.  This array will be null
 * when retrieving a summary, or will be filled in when retrieving the full history
 * for a given user or region.
 */
public class WordCountListEntry {
  private Date date;
  private int wordcount;

  public WordCountListEntry() {
  }

  public WordCountListEntry(Date date, int wordcount) {
    this.date = date;
    this.wordcount = wordcount;
  }

  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public int getWordcount() {
    return wordcount;
  }

  public void setWordcount(int wordcount) {
    this.wordcount = wordcount;
  }
}
